﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PROD_HISTORY_TECHNIC
// * CreateDate    : 2012/4/19 16:53:50
// * Creater       : CodeSmith
// * LastChangeDate: 2012/4/19 16:53:50
// * LastChanger   : 2012/4/19 16:53:50
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class ProdHistoryTechnicEntity : EntityBase
    {
        public ProdHistoryTechnicTable TableSchema
        {
            get
            {
                return ProdHistoryTechnicTable.Current;
            }
        }

        public ProdHistoryTechnicEntity()
        {

        }

        public ProdHistoryTechnicEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
            this.ProductId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_ID"]));
        }

        public ProdHistoryTechnicEntity(DataRowView dr)
        {
            if (dr == null)
            {
                return;
            }
            this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
            this.ProductId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_ID"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ProdHistoryTechnicTable.Current;
            }
        }

        #region Perporty List
        public string Id
        {
            get { return Convert.ToString(GetData(ProdHistoryTechnicTable.C_ID)); }
            set { SetData(ProdHistoryTechnicTable.C_ID, value); }
        }

        public string ProductId
        {
            get { return Convert.ToString(GetData(ProdHistoryTechnicTable.C_PRODUCT_ID)); }
            set { SetData(ProdHistoryTechnicTable.C_PRODUCT_ID, value); }
        }

        #endregion
    }


}

